package com.elmcode.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.elmcode.common.utils.PageUtils;
import com.elmcode.server.dto.CategoryDTO;
import com.elmcode.server.entity.CategoryEntity;
import com.elmcode.server.exception.BusException;
import com.elmcode.server.exception.ParamsException;

import java.util.List;
import java.util.Map;

/**
 * 菜品分类
 *
 * @author laozj
 * @email laozj@elm.com
 * @date 2024-06-13 13:05:04
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveCategory(CategoryDTO categoryVo);

    void updateCategoryInfo(Long id, CategoryDTO categoryDTO);

    void deleteById(Long id) throws BusException;

    void updateStatus(Long id, String status) throws ParamsException;

    List<CategoryEntity> selectAllCategory();

}

